package com.health.viewscontrols.jkjy;

import com.health.viewscontrols.NovaActivity;
import com.health.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

/**
 *  孕妇相关视频
 * @author nova
 *
 */
public class YF_VideoActivity extends NovaActivity{

	private Button btn_back;
	private Button btn_up;
	
	private TextView title;
	private TextView yf_bj;
	private TextView yf_rcq;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.jkjy_yf_video);
		findViews();
		setListeners();
		
	}
	@Override
	public void findViews() {
		btn_back=(Button)findViewById(R.id.btn_back);
		btn_up=(Button)findViewById(R.id.btn_up);
		btn_up.setVisibility(View.GONE);
		
	    title=(TextView)findViewById(R.id.title);
	    title.setText("孕妇相关资料");
		yf_bj=(TextView)findViewById(R.id.yf_bj);
		yf_rcq=(TextView)findViewById(R.id.yf_rcq);
		
	}

	@Override
	public void setListeners() {
		btn_back.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				YF_VideoActivity.this.finish();
			}
		});
		yf_bj.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(), PlayVideoActivity.class);
				intent.putExtra("flag", "yf_bj");
				startActivity(intent);
			}
		});
		
		yf_rcq.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(), PlayVideoActivity.class);
				intent.putExtra("flag", "yf_rcq");
				startActivity(intent);
				
			}
		});
		
	}

}
